<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var name = prompt("小明购买的商品是","");
    var number = prompt("小明购买的商品数量是","");
    alert("购物清单"+"\n"+"商品名称 购买数量"+"\n"+name+"        "+number);
</script>